//
// Created by XML on 2023/9/19.
//

// 引入自定义的头文件，通过路径的方式
#include "../include/factorial.h"

unsigned int factorial(unsigned int n){
    if (n > 0) {
        return n * factorial(n -1);
    } else {
        return 1;
    }

}